﻿@using Webdiyer.WebControls.Mvc;
@using MvcContrib.UI.Grid;
@{
    //ViewBag.Title = "Index";
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>社会信息查询</title>
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui.custom.min.js" type="text/javascript"></script>
    <script src="../../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
    }

    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnSearch").button(); $("#btnSearch2").button();
            $("#btnSearch").bind("click", function () {
                if (!$("#divSer").is(":hidden")) {
                    $("#divSer").css("visibility", "visible")
                }
                funSearch();
            });
            $("#btnSearch2").bind("click", function () {
                if (!$("#divSer").is(":hidden")) {
                    $("#divSer").css("visibility", "visible")
                }

                var varkey = $("#txtkey").val();
                if (txtkey == "") {
                    alert("请输入关键字");
                    return false;
                }
                else {
                    varkey = escape(varkey);
                    $("#nzlsjFrm").attr("src", "/Social/nzlsj?varkey=" + varkey);
                    $("#jkdaFrm").attr("src", "/Social/jkda?varkey=" + varkey);
                    $("#zyyFrm").attr("src", "/Social/zyy?varkey=" + varkey);
                    $("#qyzlFrm").attr("src", "/Social/qyzl?varkey=" + varkey);
                    $("#wzsjFrm").attr("src", "/Social/wzsj?varkey=" + varkey);
                    $("#dhhmFrm").attr("src", "/Social/dhhm?varkey=" + varkey);
                    $("#hxcjyFrm").attr("src", "/Social/hxcjy?varkey=" + varkey);
                    $("#qfqzmcyFrm").attr("src", "/Social/qfqzmc?varkey=" + varkey);
                    $("#zpclcjFrm").attr("src", "/Social/zpclcj?varkey=" + varkey);
                    $("#wlhsbgFrm").attr("src", "/Social/wlhsbg?varkey=" + varkey);
                    $("#hsrcscFrm").attr("src", "/Social/hsrcsc?varkey=" + varkey);
                    $("#jwFrm").attr("src", "/Social/jw?varkey=" + varkey);
                    $("#khxxFrm").attr("src", "/Social/khxx?varkey=" + varkey);
                    $("#mzrzFrm").attr("src", "/Social/mzrz?varkey=" + varkey);
                    $("#mzbrFrm").attr("src", "/Social/mzbr?varkey=" + varkey);
                    $("#rcscFrm").attr("src", "/Social/rcsc?varkey=" + varkey);
                    $("#wcpcsFrm").attr("src", "/Social/wcpcs?varkey=" + varkey);
                    $("#zzcFrm").attr("src", "/Social/zzc?varkey=" + varkey);
                }
            });
            $("#txtBirth1").bind("click", function () {
                funCalendar('yyyy-MM-dd')
            });
            $("#txtBirth2").bind("click", function () {
                funCalendar('yyyy-MM-dd')
            });
            //            $("#txtBeginTime").val($("#hidBeginTime").val());
            //            $("#txtEndTime").val($("#hidEndTime").val());
        });
        function funCalendar(fmt) {
            WdatePicker({
                readOnly: true,
                dateFmt: fmt
            });
        }
        function funSearch() {
            //$("#nzlsjFrm").src("/Index/nzlsj?strCard=" + $("#txtCard") + "");
            var strCard = $("#txtCard").val();
            strCard = escape(strCard);
            var varName = $("#txtName").val();
            varName = escape(varName);
            var txtBirth1 = $("#txtBirth1").val();

            var txtBirth2 = $("#txtBirth2").val();

            var txtAgeMin = $("#txtAgeMin").val();
            var txtAgeMax = $("#txtAgeMax").val();
            var varkey ="";
         

            $("#nzlsjFrm").attr("src", "/Social/nzlsj?strCard=" + strCard + "&varName=" + varName + "&varkey=" + varkey);
            $("#jkdaFrm").attr("src", "/Social/jkda?strCard=" + strCard + "&varName=" + varName + "&txtBirth1=" + txtBirth1 + "&txtBirth2=" + txtBirth2 + "&txtAgeMin=" + txtAgeMin + "&txtAgeMax=" + txtAgeMax + "&varkey=" + varkey);
            $("#zyyFrm").attr("src", "/Social/zyy?strCard=" + strCard + "&varName=" + varName + "&varkey=" + varkey);
            $("#xsfFrm").attr("src", "/Social/xsf?strCard=" + strCard + "&varName=" + varName + "&txtBirth1=" + txtBirth1 + "&txtBirth2=" + txtBirth2 + "&txtAgeMin=" + txtAgeMin + "&txtAgeMax=" + txtAgeMax + "&varkey=" + varkey);
            $("#qyzlFrm").attr("src", "/Social/qyzl?varName=" + varName + "&varkey=" + varkey);
            $("#wzsjFrm").attr("src", "/Social/wzsj?strCard=" + strCard + "&varName=" + varName + "&varkey=" + varkey);
            $("#dhhmFrm").attr("src", "/Social/dhhm?strCard=" + strCard + "&varName=" + varName + "&varkey=" + varkey);
            $("#hxcjyFrm").attr("src", "/Social/hxcjy?strCard=" + strCard + "&varName=" + varName + "&txtBirth1=" + txtBirth1 + "&txtBirth2=" + txtBirth2 + "&txtAgeMin=" + txtAgeMin + "&txtAgeMax=" + txtAgeMax + "&varkey=" + varkey);
            $("#qfqzmcyFrm").attr("src", "/Social/qfqzmc?strCard=" + strCard + "&varName=" + varName + "&txtBirth1=" + txtBirth1 + "&txtBirth2=" + txtBirth2 + "&txtAgeMin=" + txtAgeMin + "&txtAgeMax=" + txtAgeMax + "&varkey=" + varkey);
            $("#zpclcjFrm").attr("src", "/Social/zpclcj?strCard=" + strCard + "&varName=" + varName + "&varkey=" + varkey);
            $("#wlhsbgFrm").attr("src", "/Social/wlhsbg?varName=" + varName + "&varkey=" + varkey);
            $("#hsrcscFrm").attr("src", "/Social/hsrcsc?strCard=" + strCard + "&varName=" + varName + "&txtBirth1=" + txtBirth1 + "&txtBirth2=" + txtBirth2 + "&txtAgeMin=" + txtAgeMin + "&txtAgeMax=" + txtAgeMax + "&varkey=" + varkey);
            $("#jwFrm").attr("src", "/Social/jw?varName=" + varName + "&varkey=" + varkey);
            $("#khxxFrm").attr("src", "/Social/khxx?varName=" + varName + "&varkey=" + varkey);
            $("#mzrzFrm").attr("src", "/Social/mzrz?strCard=" + strCard + "&varName=" + varName + "&txtBirth1=" + txtBirth1 + "&txtBirth2=" + txtBirth2 + "&txtAgeMin=" + txtAgeMin + "&txtAgeMax=" + txtAgeMax + "&varkey=" + varkey);
            $("#mzbrFrm").attr("src", "/Social/mzbr?varName=" + varName + "&varkey=" + varkey);
            $("#rcscFrm").attr("src", "/Social/rcsc?strCard=" + strCard + "&varName=" + varName + "&txtBirth1=" + txtBirth1 + "&txtBirth2=" + txtBirth2 + "&txtAgeMin=" + txtAgeMin + "&txtAgeMax=" + txtAgeMax + "&varkey=" + varkey);
            $("#wcpcsFrm").attr("src", "/Social/wcpcs?strCard=" + strCard + "&varName=" + varName + "&txtBirth1=" + txtBirth1 + "&txtBirth2=" + txtBirth2 + "&txtAgeMin=" + txtAgeMin + "&txtAgeMax=" + txtAgeMax + "&varkey=" + varkey);
            $("#zzcFrm").attr("src", "/Social/zzc?strCard=" + strCard + "&varName=" + varName + "&varkey=" + varkey);
        }
    </script>
 </head>
<body >
<table width="100%" border="1" cellspacing="5" cellpadding="5" >
@*<tr><td colspan="3"><a href="/Index/gcpcsccMain" target="_blank">南站广场派出所车次</a></td>
<td align="right">
@if (ViewData["LoginId"].ToString() == "admin")
{
<a href="/User/Userlist"  target="_blank">用户管理</a>
}
else
{
    <a href="/User/EditPassword"  target="_blank">修改密码</a>
}
</td></tr>*@
  <tr align="left">
    <td>身&nbsp;份&nbsp;证：@Html.TextBox("txtCard", "", new { @style = "width:120px;", @name = "txtFSource" })</td>
    <td>姓名：@Html.TextBox("txtName", "", new { @style = "width:80px;", @name = "txtFSource" })</td>
    <td>出生日期：@Html.TextBox("txtBirth1", "", new { @style = "width:180px;", @class = "Wdate" })&nbsp;&nbsp;至：&nbsp;@Html.TextBox("txtBirth2", "", new { @style = "width:180px;", @class = "Wdate" })</td>
    <td>年龄段：@Html.TextBox("txtAgeMin", "", new { @style = "width:30px;", @name = "txtFSource" })-@Html.TextBox("txtAgeMax", "", new { @style = "width:30px;", @name = "txtFSource" })</td>
    <td><input type="button" name="btnSearch" id="btnSearch" value="搜索" /></td>
  </tr>

</table>

<table width="100%" border="1" cellspacing="5" cellpadding="5">
<tr>
<td width="280">关键字：@Html.TextBox("txtkey", "", new { @style = "width:180px;", @name = "txtFSource" })</td><td><input type="button" name="btnSearch2" id="btnSearch2" value="模糊搜索" /></td>
</tr>
</table>
<div id="divSer" style="visibility: hidden;">

<iframe src="@Url.Action("nzlsj")" id="nzlsjFrm" name="nzlsjFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("jkda")" id="jkdaFrm" name="jkdaFrm" scrolling="auto" style="width: 99%; height: 560px;" frameborder="0"></iframe>

<iframe src="@Url.Action("zyy")" id="zyyFrm" name="zyyFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("xsf")" id="xsfFrm" name="xsfFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("qyzl")" id="qyzlFrm" name="qyzlFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("wzsj")" id="wzsjFrm" name="wzsjFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("dhhm")" id="dhhmFrm" name="dhhmFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("hxcjy")" id="hxcjyFrm" name="hxcjyFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("qfqzmc")" id="qfqzmcFrm" name="qfqzmcFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("zpclcj")" id="zpclcjFrm" name="zpclcjFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("wlhsbg")" id="wlhsbgFrm" name="wlhsbgFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("hsrcsc")" id="hsrcscFrm" name="hsrcscFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("jw")" id="jwFrm" name="jwFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("khxx")" id="khxxFrm" name="khxxFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("mzrz")" id="mzrzFrm" name="mzrzFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("mzbr")" id="mzbrFrm" name="mzbrFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("rcsc")" id="rcscFrm" name="rcscFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("wcpcs")" id="wcpcsFrm" name="wcpcsFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>

<iframe src="@Url.Action("zzc")" id="zzcFrm" name="zzcFrm" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>
</div>
</body>
</html>